#include <stdio.h>

int main()
{
	signed int ch[100];
	int i,j;
	for(i=0;i<20;i++)
	{
		scanf("%d",&ch[i]);
		if(ch[i]<=0)
		break;
	}
	int count_1=0,count_2=0,count_3=0;
	for(j=0;j<i;j++)
	{
		if(ch[j]>=85)
		count_1++;
		else if(ch[j]>=60 && ch[j]<=84)
		count_2++;
		else
		count_3++;
	}
	printf(">=85:%d\n",count_1);
	printf("60-84:%d\n",count_2);
	printf("<60:%d\n",count_3);
	return 0;
}